﻿namespace ProduceBasicData.Api.DTO.IncomingMaterialsDto
{
    /// <summary>
    /// 入库检验DTO
    /// </summary>
    public class IncomingInspectionDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 检验单号
        /// </summary>
        public string? InspectionNo { get; set; }

        /// <summary>
        /// 关联的检验方案ID（外键）
        /// </summary>
        public int InspectionSchemeId { get; set; }
        public string? InspectionSchemeName { get; set; } // 新增：检验方案名称

        /// <summary>
        /// 关联的物料ID（外键）
        /// </summary>
        public int IncomingMaterialsId { get; set; }

        /// <summary>
        /// 物料总数
        /// </summary>
        public int TotalQuantity { get; set; }

        /// <summary>
        /// 检验结果
        /// </summary>
        public string? Result { get; set; }

        /// <summary>
        /// 检验状态（false=待检验，true=已完成）
        /// </summary>
        public bool State { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNo { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        public string? Supplier { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Isdel { get; internal set; }
    }
}
